home *** CD-ROM | disk | FTP | other *** search
- global TDi,tct
- if CDs() then
- put the number of this cd - tct into TC
- wait 10
- if mouse()="up" then
- if icon of bg Btn "markme"=TDi then
- set the icon of bg Btn "markme" to 30016
- put return&(number of this cd-tct)& return into checkstr
- put offset(checkstr,fld "marked cards") into howfar
- if howfar = 0
- then
- if checkstr is not in fld "marked cards"
- then put number of this cd -tct&return into line (numLns(fld "marked cards")+1) of fld "marked cards"
- set icon of bg Btn "markme" to TDi
- else
- add 1 to howfar
- get char 1 to howfar of fld "marked cards"
- delete line numLns(it) of fld "marked cards"
- set itemdelimiter to "Ñ"
- get (number of this cd -tct)
- get offset("ª"&it&"Ñ",fld "marked cards")
- if it ¡0
- then
- repeat
- if char it of fld "marked cards" = "Ñ" then exit repeat
- delete char it of fld "marked cards"
- end repeat
- put offset("Ñ"&TC&"ª",fld "marked cards") into startchar
- delete char startchar to it of fld "marked cards"
- end if
- end if
- else
- if checkstr is not in fld "marked cards"
- then put number of this cd -tct&return into line (numLns(fld "marked cards")+1) of fld "marked cards"
- set icon of bg Btn "markme" to TDi
- end if
- else
- put numLns(fld "marked cards") into linecount
- put empty into marklist
- put empty into theMess
- repeat with a = 2 to linecount
- set itemdelimiter to "Ñ"
- get offset("ª"&line a of fld "marked cards"&"Ñ",fld "marked cards")
- if it ¡ 0
- then
- get last item of char 1 to it of fld "marked cards"
- set itemdelimiter to "ª"
- get item 2 of it
- if line a of fld "marked cards" = TC then put it into theMess
- put line a of fld "marked cards" && it into line (numLns(marklist)+1) of marklist
- else
- put line a of fld "marked cards" into line (numLns(marklist)+1) of marklist
- end if
- end repeat
- put marklist&return&"-"&return&tStr("LibMsg",33) into popmess
- get popitup(popmess,0,clickh(),clickv())
- set itemdelimiter to ","
- put item 2 of it into what
- get item 1 of it
- if it¡0 then
- if it < (numLns(fld "marked cards")) then go cd (word 1 of((line it of popmess)) + tct)
- else
- set icon of bg Btn "markme" to TDi
- if number of this cd-tct&return is not in fld "marked cards"
- then put number of this cd -tct&return into line (numLns(fld "marked cards")+1) of fld "marked cards"
- sort fld "marked cards" numeric
- ask tStr("LibMsg",34) with theMess
- if it ¡""
- then
- put it into theMess
- set itemdelimiter to "Ñ"
- get (number of this cd -tct)
- get offset("ª"&it&"Ñ",fld "marked cards")
- if it ¡0
- then
- repeat
- if char it of fld "marked cards" = "Ñ" then exit repeat
- delete char it of fld "marked cards"
- end repeat
- put offset("Ñ"&TC&"ª",fld "marked cards") into startchar
- delete char startchar to it of fld "marked cards"
- end if
- put "Ñ"&TC&"ª"&stripem(theMess)&"ª"&TC&"Ñ" before line 1 of fld "marked cards"
- end if
- end if
- end if
- end if
- sort fld "marked cards" numeric
- end if